package com.study.demo.aop.demo4;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 事务注解
 * @author: elvin
 * @time: 2019-08-15 10:06
 * @desc:
 **/
public class Start4 {

    public static void main(String[] args){
        AnnotationConfigApplicationContext ac =  new AnnotationConfigApplicationContext(Config.class);
        UserService userService = ac.getBean(UserService.class);
        userService.add();
        ac.close();
    }
}
